<template>
    <div class="box" :style="{height : innerHeight}">
        <header1View>
            <template #center>
                云打印机
            </template>
            <template #right>
                <img src="https://cdn3.axureshop.com/demo/1525603/images/%E4%BA%91%E6%89%93%E5%8D%B0%E6%9C%BA/u14202.png" alt="" @click="addPrinter">
            </template>
        </header1View>
        <!-- 遮罩层 -->
        <van-overlay :show="show">
            <div class="wrapper">
                <div class="block">
                    <div class="help_title">
                        <p>如何添加打印机？</p>
                    </div>
                    <div class="all_text">
                        <div class="text_box" v-for="(item, index) in list" :key="index">
                            <p>{{item.title}}</p>
                            <span>{{item.content}}</span>
                        </div>
                    </div>
                    <van-button plain class="btn" @click="show = false">我知道了</van-button>
                </div>
            </div>
        </van-overlay>

        <div class="imgBox">
            <img src="	https://cdn3.axureshop.com/demo/1525603/images/%E5%9B%A2%E8%B4%AD%E7%AE%A1%E7%90%86/u4059.png
            " alt="">
            <div class="text"><p> - 暂无相关数据 -</p></div>
        </div>

    </div>
</template>


<script>
import header1View from "../../components/setting/header1View.vue";
import Vue from 'vue';
import { Overlay } from 'vant';
import { arr } from "../../allData/setting/addPrint";

Vue.use(Overlay);
export default {
    name : 'CloudPrinters',
    components:{
        header1View
    },
    data(){
        return{
            show: false,   //遮罩层的显示
            list:arr
        }
    },
    created(){
        this.innerHeight=window.innerHeight+'px'
    },
    methods: {
        addPrinter(){   //控制遮罩层的显示
            this.show=true
        }
    },

}
</script>

<style scoped>
    .box{
        background-color: #f5f5f5;
    }
.imgBox{
    margin: 80px auto;
    text-align: center;
}
.text{
    color: #797979;
    font-size: 16px;
    margin-top: 20px;
}
  /* 遮罩层 */
  .wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.block {
    width: 80%;
    border-radius: 15px;
    background-color: #fff;
    text-align: center;
}

.btn {
    border: 1px solid #ff6e53;
    border-radius: 20px;
    color: #ff6e53;
    height: 36px;
    margin: 10px 0;
    padding: 0 60px;
}

.van-overlay {
    background-color: rgba(0, 0, 0, .5);
}

/* 如何选择 */
.help_title {
    font-size: 18px;
}

.all_text {
    width: 90%;
    margin: 0 auto;
    text-align: left;
}

.text_box p {
    text-align: left;
    font-size: 14px;
    line-height: 15px;
    font-weight: 400;
    color:#333333
}

.text_box span {
    font-family: 'MicrosoftYaHei', '微软雅黑 Regular', '微软雅黑';
    font-weight: 400;
    font-size: 14px;
    color: #b0afaf;
}


    


</style>